import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import store from "./store/index.js";
let currentWidth = 1920;
const windowWidth = window.innerWidth;
let lpr = windowWidth / currentWidth;
document.getElementsByTagName('body')[0].style.setProperty('--lpr', lpr);





// import '/src/assets/styles.scss'
const app = createApp(App);
app.config.globalProperties.$globalVar = '这是一个全局变量';
app.use(store)
app.provide('message', '注入信息')
console.log(app.version)  // vue 的版本
app.config.errorHandler = (err,instance,info)=>{
    console.log(instance,err,info)
}
// app.config.performance = true;
app.mount('#app')
